package mr.ali.videoapp.portal.kafka;

import com.google.gson.Gson;
import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Administrator
 *
 * 向kafka发出数据
 */
@Component
@Slf4j
public class KafkaProducer {
   @Resource
   private KafkaTemplate<String , String>  kafkaTemplate;

   private Gson gson = new Gson();

}
